<#macro page_header title='' >
    
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>后台管理 - ${title}</title>

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link rel="shortcut icon" href="/static/web/favicon.ico">
    <link href="/static/admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/static/admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/static/admin/css/animate.min.css" rel="stylesheet">
    <link href="/static/admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">

    <link href="/static/admin/jquery_fileupload/jquery.fileupload.css" rel="stylesheet">
    <link href="/static/admin/jquery_fileupload/jquery.fileupload-ui.css" rel="stylesheet">

    <script src="/static/admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="/static/admin/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="/static/admin/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="/static/admin/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="/static/admin/js/plugins/layer/layer.min.js"></script>
    <script src="/static/admin/js/hplus.min.js?v=4.1.0"></script>
    <script type="text/javascript" src="/static/admin/js/contabs.min.js"></script>
    <script src="/static/admin/js/plugins/pace/pace.min.js"></script>

    <script src="/static/admin/jquery_fileupload/jquery.ui.widget.js"></script>
    <script src="/static/admin/jquery_fileupload/jquery.fileupload.js"></script>
    <script src="/static/admin/jquery_fileupload/jquery.iframe-transport.js"></script>
    <!--<script src="/static/admin/jquery_fileupload/jquery.fileupload-ui.js"></script>-->
    <!--<script src="/static/admin/jquery_fileupload/jquery.fileupload-image.js"></script>-->
    <script src="/static/admin/plugins/localResizeIMG/dist/lrz.bundle.js"></script>
</head>

<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
<div id="wrapper">
    <!--左侧导航开始-->
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav" id="side-menu" >
                <li class="nav-header">
                    <div class="dropdown profile-element">
                        <span><img alt="image" class="img-circle" src="/static/admin/img/profile_small.jpg" /></span>
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                               <span class="block m-t-xs"><strong class="font-bold">${user.username}</strong></span>
                                <span class="text-muted text-xs block">超级管理员<b class="caret"></b></span>
                                </span>
                        </a>
                        <ul class="dropdown-menu animated fadeInRight m-t-xs">
                            <li><a href="/admin/logout">安全退出</a>
                            </li>
                        </ul>
                    </div>
                    <div class="logo-element">Spray
                    </div>
                </li>
                <li>
                    <a href="/admin/main">
                        <i class="fa fa-home"></i>
                        <span class="nav-label">主页</span>
                    </a>
                </li>
                <li>
                    <a href="/admin/photo"><i class="fa fa-picture-o"></i> <span class="nav-label">我的相册 </span></a>
                </li>
                <li>
                    <a href="/admin/config"><i class="fa fa-gear"></i> <span class="nav-label">网站配置</span></a>
                </li>
                <#if user.username=='admin'>
                    <li>
                        <a href="/admin/users"><i class="fa fa-users"></i> <span class="nav-label">用户管理</span></a>
                    </li>
                </#if>
            </ul>
        </div>
    </nav>
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="row border-bottom">
            <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
                    <form role="search" class="navbar-form-custom" method="post" action="http://www.zi-han.net/theme/hplus/search_results.html">
                        <div class="form-group">
                            <input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search">
                        </div>
                    </form>
                </div>
                <ul class="nav navbar-top-links navbar-right">
                    <li>
                        <a href="/${user.username}">
                            <i class="fa fa-home"></i> 首页
                        </a>
                    </li>
                    <li>
                        <a href="/admin/logout">
                            <i class="fa fa-sign-out"></i> 退出
                        </a>
                    </li>
                </ul>
            </nav>
        </div>
        <div class="row J_mainContent" id="content-main">

        </#macro>
        <#macro page_footer>

        </div>
    </div>
    <!--右侧部分结束-->
</div>
</body>
</html>

</#macro>